package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    //删除员工
    public abstract int deleteByPrimaryKey(Long id);
    //插入员工
    public abstract int insert(Employee paramEmployee);
    //查询员
    public abstract Employee selectByPrimaryKey(Long id);
    //查询所有员工
    public abstract List<Employee> selectAll();
    //修改员工信息
    public abstract int updateByPrimaryKey(Employee paramEmployee);
    //查询员工数量
    public abstract Integer selectForCount(QueryObject paramQueryObject);
    //查询分页后员工信息
    public abstract List<Employee> selectForList(QueryObject paramQueryObject);
    //登录
    public abstract Employee selectByInfo(@Param("username") String paramString1, @Param("password") String paramString2);
    //插入关系表
    public abstract void insertRelation(@Param("eid") Long eid, @Param("rid") Long rid);
    //通过id删除关系表信息
    public abstract void deleteRelation(Long id);

    public abstract void deleteBbatch(Long[] id);

    public abstract Employee checkName(String name);

    public abstract List<Employee> selectAllMess();

    public abstract List<Employee> findSeller();
}
